package com.example.demo;

import com.ccblife.third.msagent.msagentfeign.rpc.EnableMsagent;
import com.example.demo.test.Test1;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@EnableMsagent("com.example.demo.test")
public class DemoApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext  applicationContext=SpringApplication.run(DemoApplication.class, args);
        Test1  test1=applicationContext.getBean(Test1.class);
        test1.say1();
        test1.say2();
    }

}
